package com.H1023.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author MJ
 * @date 2021/10/8 13:01
 */

@Data
@AllArgsConstructor
@NoArgsConstructor

public class Type {
    @JSONField(name="typeid")
    private int typeid;         //类型id
    @JSONField(name="typename")
    private String typename;    //图书类型名称
    @JSONField(name="total")
    private int total;          //图书总数

    public Type(String typename,int total) {
        this.total = total;
        this.typename=typename;
    }
    public Type(String typename) {
        this.typename=typename;
        this.total=0;
    }
    public Type(int typeid,String typename) {
        this.typeid=typeid;
        this.typename=typename;
        this.total=0;
    }
}
